/*
 * CharacterSets.h
 *
 *  Created on: 16.10.2012
 *      Author: caffeine
 */

#ifndef CHARACTERSETS_H_
#define CHARACTERSETS_H_

#include <IReferenceCounted.h>
#include "CharacterPattern.h"
//class CharacterPattern;

struct CharacterSets: public irr::IReferenceCounted {
	irr::u32 elements[CharacterPattern::BodyElementType_COUNT];
	/*
	irr::u32 facial;
	irr::u32 hair;
	irr::u32 hair_head;
	irr::u32 skin;
	irr::u32 face;
	irr::u32 body;
	irr::u32 feet;
	irr::u32 hands;
	irr::u32 lags;
	irr::u32 adds;
	*/
	CharacterPattern*parent;

	irr::u32 get(CharacterPattern::BodyElementType type){
		return elements[type];
	}
	void set(CharacterPattern::BodyElementType type,irr::u32 value){
		elements[type]=value;
	}

	CharacterSets(){
		for (int i=0;i<CharacterPattern::BodyElementType_COUNT;i++)
			elements[i]=0;
		parent=0;
	}

	CharacterSets(CharacterPattern*p){
		for (int i=0;i<CharacterPattern::BodyElementType_COUNT;i++)
			elements[i]=0;
		parent=p;
	}
};

#endif /* CHARACTERSETS_H_ */
